import { searchQuery } from '@/store/reducer/search';
import request from '@/utils/request';

// 获取建议数据
export const getSuggestionAPI = (q: string) =>
  request({
    url: `/v1_0/suggestion?q=${q}`,
  });

// 获取搜索结果
export const getSearchResult = (params: searchQuery) =>
  request({
    url: '/v1_0/search',
    params,
  });
